package io;

import java.io.FileNotFoundException;
import java.io.PrintWriter;

//java.io.PrintWriter是具有自动行刷新的缓冲字符输出流.内部总是连接BufferedWriter
// 特点:1:可以按行写出字符串
//      2:自动行刷新
public class PWDemo {
    public static void main(String[] args) throws FileNotFoundException {
        PrintWriter pw = new PrintWriter("pw.txt");
        pw.println("一九八三年小巷.");
        pw.println("十二月晴朗");
        System.out.println("写出完毕");
        pw.close();
    }
}
